package com.cdd.common.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@TableName("dynamic_alert")
@Data
public class DynamicAlert implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer fromUserId; //通知来源人
    private String fromUserNick; //通知来源人昵称
    private String fromUserPic; //通知来源人头像
    private Integer userId; //被通知人
    private String nick; //被通知人昵称
    private String pic; //被通知人头像
    private Integer dynamicId; //动态id
    private String dynamicImage; //动态首图
    private Integer type; //1点赞了我的动态 2评论了我的动态 3点赞了我的评论 4回复了我的评论
    private String content; //评论内容/回复评论的内容
    private Date createTime;
}
